<script setup lang="ts">
import ItemWrap from "@/components/item-wrap";
import LeftTop from "./left-top.vue";
import LeftCenter from "./left-center.vue";
import LeftBottom from "./left-bottom.vue";
import RightCenter from "./right-center.vue";
import RightTop from "./right-top.vue";
import RightBottom from "./right-bottom.vue";
import Baidumap from "@/views/index/baidumap.vue";


</script>

<template>
  <div class="index-box">

    <div class="content_center">
      <Baidumap style=" width: 100%;
  height: 100%;"/>
    </div>
    <div class="content_left">
      <div class="content_left-top ">
        <LeftTop/>
      </div>
      <div class="content_left-center">
        <LeftCenter/>
      </div>
      <div class="content_left-bottom ">
        <LeftBottom/>
      </div>

    </div>
    <div class="content_right">
      <div class="content_right-top">
        <RightTop/>
      </div>
      <div class="content_right-center">
        <RightCenter/>
      </div>
      <div class="content_right-bottom ">
        <RightBottom/>
      </div>
    </div>
  </div>

</template>

<style scoped lang="scss">
.index-box {
  width: 100%;
  display: flex;
  min-height: calc(100% - 64px);
  justify-content: space-between;
}

//左边 右边 结构一样
.content_left,
.content_right {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  position: relative;
  width: 540px;
  box-sizing: border-box;
  flex-shrink: 0;


}

.content_center {
  position: absolute;
  width: 100vw;
  left: 0;
  top: 70px;
  right: 0;
  bottom: 0;
  overflow: hidden;
  flex: 1;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.content_left-center {
  height: 300px;
}

.content_left-top {
  height: 220px;
}

.content_left-bottom {
  height: 350px;
}

.content_right-top {
  height: 300px;
}

.content_right-center {
  height: 300px;
}

.content_right-bottom {
  height: 400px;
}
</style>
